Skip to content

Fix/issues batch 7 may2026#632

Merged
aunali8812 merged 2 commits into
stagingfrom
fix/issues-batch-7-may2026
May 22, 2026
Merged

Fix/issues batch 7 may2026#632
aunali8812 merged 2 commits into
stagingfrom
fix/issues-batch-7-may2026

Conversation

@aunali8812

@aunali8812 aunali8812 commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • New Features

    • Added floating documentation button for quick access to help resources
    • Campaign form submit button displays loading state during submission
    • Featured campaigns curated selection on the campaigns page
    • Enhanced loading skeleton on single post pages
  • Bug Fixes

    • Improved profile image display with placeholder fallback for missing avatars
    • Simplified campaign progress bar calculation
  • Enhancements

    • Campaign success messages now display relative time formatting instead of full timestamps

Review Change Stack

@aunali8812 aunali8812 requested a review from Ebube111 as a code owner May 22, 2026 07:26
@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
potlock-next-app Ready Ready Preview, Comment May 22, 2026 7:26am

Request Review

@aunali8812 aunali8812 merged commit 2a02b75 into staging May 22, 2026
3 of 4 checks passed
@coderabbitai

coderabbitai Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: fdffaf86-0cd4-472e-abd0-994a5f9a0888

📥 Commits

Reviewing files that changed from the base of the PR and between a8ad4f9 and 6269cf5.

📒 Files selected for processing (8)
  • src/entities/_shared/account/components/profile-images.tsx
  • src/entities/campaign/components/CampaignProgressBar.tsx
  • src/entities/campaign/components/editor.tsx
  • src/entities/campaign/hooks/forms.ts
  • src/layout/components/floating-docs-button.tsx
  • src/pages/_app.tsx
  • src/pages/campaigns.tsx
  • src/pages/feed/[account]/[block]/index.tsx

Walkthrough

This PR adds campaign submission feedback enhancements, a global floating docs button, refinements to featured campaign carousel filtering and display, and improved loading/fallback states across account and feed pages.

Changes

UI and UX Polish

Layer / File(s) Summary
Campaign submission feedback and progress improvements
src/entities/campaign/components/editor.tsx, src/entities/campaign/hooks/forms.ts, src/entities/campaign/components/CampaignProgressBar.tsx
Submit button now disables and shows a spinner during form submission, with dynamic labels ("Creating..."/"Updating..." vs "Create Campaign"/"Update Campaign"). Campaign success toasts use a new relative-time helper (formatRelativeFromNow) to display "X minutes/hours/days from now" instead of full timestamps. Progress bar min-value calculation is simplified to return undefined when target is met, otherwise clamps the min percentage without prior geometry-based adjustments.
Global floating docs navigation
src/layout/components/floating-docs-button.tsx, src/pages/_app.tsx
New FloatingDocsButton component renders a fixed-position circular link to https://docs.potlock.io with a HelpCircle icon, accessibility attributes, and new-tab behavior. The button is integrated globally into RootLayout so it appears on every page.
Featured campaigns carousel refinement
src/pages/campaigns.tsx
Centralizes featured campaign filtering with a new FEATURED_CAMPAIGN_ON_CHAIN_IDS constant. Featured campaigns are now derived by filtering incoming data, the carousel progress display and early-render check depend on the filtered array length, the "VIEW ALL" link uses a constant pathname instead of a hardcoded path, and carousel items are rendered by mapping directly over the filtered list.
Account avatar and feed loading displays
src/entities/_shared/account/components/profile-images.tsx, src/pages/feed/[account]/[block]/index.tsx
Profile image component now uses a placeholder image URL and displays a fallback initial character (or "?") when avatar is missing. Feed page loading state is replaced with a structured skeleton layout (profile, text line, and content placeholders) instead of a simple "Loading..." text.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Possibly related PRs

Suggested reviewers

  • Ebube111

Poem

🐰 Floating docs and polished forms,
With skeleton states and relative norms,
Campaign carousels filtered just right,
Avatar fallbacks shining bright!
From now to ever, the UI takes flight.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/issues-batch-7-may2026

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant